import FormItem from '../packages/form-item/index'
import Form from '../packages/form/index'
import Select from '../packages/select/index'
import Option from '../packages/option/index'
import Button from '../packages/button/index'
import Input from '../packages/input/index'
import Row from '../packages/row/index'
import Col from '../packages/col/index'
import Table from '../packages/table'
import TableColumn from '../packages/table-column'
import ButtonGroup from '../packages/button-group/index'
import './theme-chalk/src/index.scss'
const components = [
  FormItem,
  Form,
  Select,
  Option,
  Input,
  Table,
  TableColumn,
  Button,
  Row,
  Col,
  ButtonGroup
]
const install = function(Vue) {
  components.forEach((component) => {
    Vue.component(component.name, component)
  })
}

// if (typeof window !== 'undefined' && window.Vue) {
//   install(window.Vue);
// }

export default {
  version: '1.0.0',
  ...components,
  install
}
